@gray: #888;
@orange: #db9e3f;
@black: #000;
@lightBlack: #333;
@white: #fff;
@darkWhite: #f1f1f1;
@shadowWhite: #eee;

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  color: @lightBlack;
  font-size: 0.26rem;
  line-height: 1.5;
  background: @darkWhite;
  overflow-x: hidden;
}

// 广告区域
@advHeight: 0.9rem;
.adv {
  background: @black;
  color: @white;
  position: fixed;
  width: 100%;
  height: @advHeight;
  left: 0;
  top: 0;
  display: flex;
  padding: 0 0.34rem;
  align-items: center;
  z-index: 999;
  .logo {
  }
  .title {
    flex-grow: 1;
    margin-left: 0.2rem;
    h1 {
      font-size: 0.26rem;
      font-weight: normal;
    }
    p {
      color: @gray;
    }
  }
  .download {
  }
}

// 顶部菜单
.header {
  background: @orange;
  margin-top: @advHeight;
  color: @white;
  height: @advHeight;
  display: flex;
  align-items: center;
  a {
    width: 10px;
    flex-grow: 1;
    text-align: center;
    &.active {
      span {
        border-bottom: 2px solid #fff;
      }
    }
  }
}

// 通用滑动区域
.slider-container {
  display: flex;
  overflow: hidden;
  align-items: flex-start;
  transition: 0.3s;
  .slider-item {
    width: 100%;
    flex-shrink: 0;
  }
}

// 轮播图区域
.banner {
  position: relative;
  .slider-container {
    width: 7.5rem;
    height: 3.38rem;
  }
  .dots {
    position: absolute;
    bottom: 0.03rem;
    left: 0;
    height: 0.3rem;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 0.5rem;
    span {
      width: 0.15rem;
      height: 0.15rem;
      background: @white;
      margin: 0 0.08rem;
      border-radius: 1px;
      &.active {
        background: @gray;
      }
    }
  }
}

// 中部菜单
.menu {
  background: @white;
  margin-top: 0.24rem;
  .menu-list {
    display: flex;
    overflow-x: scroll;
    padding: 0.2rem 0;
    &.list-expand {
      flex-wrap: wrap;
    }
    .item {
      text-align: center;
      border-right: 1px solid @darkWhite;
      margin: 0.15rem 0;
      width: 25%;
    }
  }
  .expand {
    text-align: center;
    background: #f9f9f9;
    padding: 0.15rem 0;
  }
}

// block-conatiner的通用样式
.block-container {
  background: #fff;
  margin-top: 0.26rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: 0 0.34rem;
  .block-title {
    display: flex;
    padding: 0.3rem 0;
    align-items: center;
    border-bottom: 1px solid #eee;
    h2 {
      font-size: 0.32rem;
      font-weight: normal;
      flex-grow: 1;
      margin-left: 0.2rem;
    }
  }
  .block-menu {
    padding: 0.2rem 0;
    display: flex;
    justify-content: space-between;
    span.active {
      padding-bottom: 0.1rem;
      border-bottom: 3px solid @orange;
      color: @orange;
    }
  }
}
// 新闻区域
.news-list {
  .slider-item {
    padding: 0.24rem 0;
  }

  .news-item {
    height: 0.6rem;
    display: flex;
    align-items: center;
    span {
      color: @gray;
    }
    a {
      flex-grow: 1;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      margin: 0 0.24rem;
    }
    &::before {
      content: '';
      font-size: 0.2rem;
      border: 1px solid;
      padding: 0 0.1rem;
      white-space: nowrap;
      border-radius: 0.05rem;
    }
    &.hot::before {
      content: '热门';
      color: #ff3636;
      border-color: #ff3636;
    }
    &.news::before {
      content: '新闻';
      color: #1e96ab;
      border-color: #1e96ab;
    }
    &.notice::before {
      content: '公告';
      color: #f09a37;
      border-color: #f09a37;
    }
    &.match::before {
      content: '赛事';
      color: #4d9cff;
      border-color: #4d9cff;
    }
    &.activity::before {
      content: '活动';
      color: #ff3636;
      border-color: #ff3636;
    }
  }
}

// 英雄区域
// 英雄区域
.hero-list {
  .block-title {
    flex-wrap: wrap;
    img {
      width: 100%;
      border-radius: 0.1rem;
      margin-top: 0.24rem;
    }
  }
  .slider-item {
    text-align: center;
    padding: 0.24rem 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.24rem;
    img {
      width: 1.172rem;
      height: 1.172rem;
      border-radius: 0.1rem;
    }
  }
}

// 精彩视频
.video-list {
  .block-menu {
    justify-content: flex-start;
    span {
      margin-right: 0.8rem;
    }
  }
  .slider-item {
    padding: 0.24rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.24rem;
    .title {
      margin: 0.2rem 0 0.1rem 0;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      overflow: hidden;
      -webkit-line-clamp: 2; // 最大的行数
    }
    img {
      width: 3.29rem;
      height: 1.8rem;
    }
    .title {
      margin: 0.2rem 0 0.1rem 0;
    }
    .aside {
      color: @gray;
      font-size: 0.2rem;
      display: flex;
      justify-content: space-between;
      .spr {
        vertical-align: -0.03rem;
      }
    }
  }
}

// 加载更多
.more {
  background: #fefefe;
  display: block;
  color: @gray;
  text-align: center;
  font-size: 0.24rem;
  line-height: 0.7rem;
}
